using UnityEngine;
using UnityEditor;
using UnityEditor.Compilation;
using System.Collections;
using System.Collections.Generic;

public class CompileMgr : Singleton<CompileMgr>
{
    [UnityEditor.Callbacks.DidReloadScripts]
    public static void OnScriptsReloaded()
    {
        var ins = Validator.Instance;
        Debug.Log("OnScriptsReloaded");
        UIGeneratorMgr.Instance.AutoBindingCompoment();
    }

    public void CallRecompile()
    {
        // Debug.Log("CallRecompile");
        CompilationPipeline.RequestScriptCompilation();
    }
}